<h1>
	<?php echo $this->Html->image('bootstrap/dashboard.png')?>
	控制面板
</h1>
<div class="bloc left">
	<div class="title"> 常用菜单 
		<span style=float:right>
		<?php echo $this->Html->link('刷新菜单',array('admin'=>true,'controller'=>'Index','action'=>'delmenucache'))?>
		</span>
	</div>
    <div class="content dashboard">
          <div class="center" style="width: auto; display: block; ">
              <a href="admin/Articles/add" class="shortcut"> <img src="img/app.png" alt="" width="48" height="48"> 添加文章 </a>
              <a href="admin/Tickets/add" class="shortcut"> <img src="img/app.png" alt="" width="48" height="48"> 添加票品 </a>
              <a href="admin/UserOrders" class="shortcut"> <img src="img/app.png" alt="" width="48" height="48"> 订单管理 </a>
              <a href="admin/Users" class="shortcut last"> <img src="img/app.png" alt="" width="48" height="48"> 会员管理 </a>
              <div class="cb"></div>
          </div>
          <p></p>
    </div>
</div>


<div class="bloc right">
	<div class="title"> 今日动态 </div>
    <div class="content">
          <div class="left">
            <table class="noalt">
              <thead>
                <tr>
                  <th colspan="2"><em>User</em></th>
                </tr>
              </thead>
              <tbody>
                <tr>
                  <td><h4><?php echo $order_count;?>　</h4></td>
                  <td class="neutral">新增订单</td>
                </tr>
                <tr>
                  <td><h4><?php echo $register_count;?>　</h4></td>
                  <td class="neutral">注册会员</td>
                </tr>
                <tr>
                  <td><h4><?php echo $ticketbook_count;?>　</h4></td>
                  <td class="good">缺票登记</td>
                </tr>
                <tr>
                  <td><h4><?php echo $ticketavisory_count;?>　</h4></td>
                  <td class="good">票品咨询</td>
                </tr>
                <tr>
                  <td><h4>&nbsp;</h4></td>
                  <td></td>
                </tr>
                <tr>
                  <td><h4></h4></td>
                  <td class="bad"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="right">
            <table class="noalt">
              <thead>
                <tr>
                  <th colspan="2"><em>Content</em></th>
                </tr>
              </thead>
              <tbody>
              	<tr>
                  <td><h4><?php echo $article_count;?>　</h4></td>
                  <td class="good">新增文章</td>
                </tr>
                <tr>
                  <td><h4><?php echo $ticket_count;?>　</h4></td>
                  <td class="good">新增票品</td>
                </tr>
                <tr>
                  <td><h4><?php echo $venue_count;?>　</h4></td>
                  <td class="good">新增场馆</td>
                </tr>
                <tr>
                  <td><h4>&nbsp;</h4></td>
                  <td class="bad"></td>
                </tr>
              </tbody>
            </table>
          </div>
          <div class="cb"></div>
	</div>
</div>
      
<div class="cb"></div>
<div class="bloc left">
	<div class="title"> 服务器 </div>
    <div class="content">
        <table class="noalt" style = 'width:100%'>
        	<tr><th colspan="2"><em>&nbsp;</em></th></tr>
         	<tr>
         		<th><em>php</em></th><th><em>mysql</em></th></tr>
         		<tr><th colspan="2"><em>&nbsp;</em></th></tr>
                <tr><td><h4><?php echo PHP_VERSION?></h4></td>
            	<td><h4><?php 
	            	App::uses('ConnectionManager', 'Model');
	            	$dataSource = ConnectionManager::getDataSource('default');
            		mysql_connect($dataSource->config['host'],$dataSource->config['login'],$dataSource->config['password']); 
            		echo mysql_get_server_info()
            	?></h4>
            	</td>
            </tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
            <tr><th colspan="2"><em>SERVER_SOFTWARE</em></th></tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
            <tr><td colspan="2"><?php echo $_SERVER['SERVER_SOFTWARE']?></td></tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
			<tr><th colspan="2"><em>datetime</em></th></tr>
			<tr><th colspan="2"><em>&nbsp;</em></th></tr>
            <tr><td colspan="2"><?php echo date('Y-m-d H:i:s');?></td></tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
			<tr><th colspan="2"><em>OS</em></th></tr>
			<tr><th colspan="2"><em>&nbsp;</em></th></tr>
            <tr><td colspan="2"><?php echo php_uname();?></td></tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
            <tr><th colspan="2"><em>&nbsp;</em></th></tr>
		</table>
    </div>
</div>
      
<div class="bloc right">
	<div class="title"> 程序模块 </div>
    <div class="content dashboard">
    	<div class="center" style="width: auto; display: block; ">
        	<?php foreach ($plugins as $plugin) : ?>
              <a href="javascript:;" class="shortcut">
              	<?php 
	              	echo $this->Html->image(Configure::read("$plugin.icon"),array("width"=>"48","height"=>"48"));
              	?>
              	<?php echo Configure::read("$plugin.app"); ?><br/> 
              	<?php echo Configure::read("$plugin.version"); ?>
              </a>
          	<?php endforeach;?>
            <div class="cb"></div>
        </div>
     </div>
</div>